package bcm.bridge.center.printer;

import org.apache.thrift.transport.TSocket;
import org.apache.thrift.transport.TTransportException;

import java.net.Socket;

public class BridgeSocket extends TSocket{
	private Socket _socket;
	public BridgeSocket(Socket socket) throws TTransportException {
		super(socket);
		_socket=socket;
	}
	public String toString(){
		if(_socket==null) return "";
		return String.format("%s:%d",_socket.getInetAddress().getHostAddress(),_socket.getPort());
	}

}
